<!DOCTYPE html>
<html lang="en" style="height: 100%">
  <head>
    <meta charset="UTF-8" />
    <!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no"
    />
    <title>金帝商城</title>
    <style>
      .max640 {
        max-width: 640px;
        margin: auto;
      }
    </style>
    <script type="text/javascript">
      //简化压缩版 flexible.min.js ，根据实际情况决定是否使用
      !(function (e, t) {
        function n() {
          var n = s.getBoundingClientRect().width;
          (t = t || 540), n > t && (n = t);
          var i = (100 * n) / e;
          s.style.fontSize = i + "px";
        }
        var i,
          o = document,
          d = window,
          s = o.documentElement;
        n(),
          d.addEventListener(
            "resize",
            function () {
              clearTimeout(i), (i = setTimeout(n, 300));
            },
            !1
          ),
          d.addEventListener(
            "pageshow",
            function (e) {
              e.persisted && (clearTimeout(i), (i = setTimeout(n, 300)));
            },
            !1
          ),
          d.addEventListener(
            "DOMContentLoaded",
            function () {
              (o.body.style.position = "relative"),
                (o.body.style.fontSize = "16px"),
                (o.body.style.margin = "0 auto"),
                (o.body.style.maxWidth = t + "px");
            },
            !1
          );
      })(720, 640);
    </script>
  </head>
  <body style="height: 100%">
    <div id="app" style="height: 100%"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>

  <script type="text/javascript" src="/static/uni.webview.js"></script>
  <script type="text/javascript" src="/static/jweixin-1.6.0.js"></script>
  <script>
    document.addEventListener("UniAppJSBridgeReady", function () {
      uni.webView.getEnv(function (res) {
        console.log("当前环境：" + JSON.stringify(res));
      });
    });
  </script>
</html>
